package com.kgc.scd.service;

import com.kgc.scd.annotation.RequestPermission;
import com.kgc.scd.annotation.RequestUser;
import com.kgc.scd.util.RequestResult;
import com.kgc.scd.util.UserAnno;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created On : 2022/6/20.
 * <p>
 * Author     : 98730
 * <p>
 * Description: 下单业务接口
 */
@FeignClient(value = "blmall-server-jzp-8102")
public interface PlaceOrderService {

    @PostMapping("/PlaceOneOrder")
    RequestResult<Map<String, Object>> PlaceOneOrder(@RequestParam("orderId") String orderId, @RequestParam(value = "innerId", required = false) Integer innerId, @RequestParam(value = "addrId", required = false) String addrId, @RequestBody UserAnno userAnno);

    @PostMapping("/PlaceOneSeckillOrder")
    RequestResult<Map<String, Object>> PlaceOneSeckillOrder(@RequestParam("orderId") String orderId, @RequestParam(value = "addrId", required = false) String addrId, @RequestBody UserAnno userAnno);
}
